<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

 if(request.getAttribute("error")!=null){
	out.println(request.getAttribute("error").toString());
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>insert_user.jsp</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../style/ZuCe.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript">
		function checkNull(){
			var user_name = document.forms[0].user_name;
			if(user_name.value==''){
				alert("请输入用户名！");
				user_name.focus();
				return false;
				}
			var password = document.forms[0].password;
			if(password.value==''){
				alert("请输入密码！");
				password.focus();
				return false;
				}
			}
	</script>
 </head>
  <body id="MainBody">
		<div class="MainTop"><img src="../images/maintopright.gif" /></div>
	    <div class="MainBar">
	    	<p style="text-indent:2em; text-align:left"> 你现在的位置: > >用户注册</p>
	    </div>
    	<form action="userAction.do?method=insertUserInfo" method="post" onsubmit="return checkNull();">
			<div id="WrapUser">   
		    	<ul>
		        	<li>用户名</li>
		            <li><input name="user_name" type="text" class="InputStyle"/></li>
		        </ul>
		        <ul>
		        	<li>密&nbsp;&nbsp;码</li>
		            <li><input name="password" type="password" class="InputStyle" /></li>
		        </ul>
		        <ul>
		        	<li>&nbsp;&nbsp;</li>
		            <li class="ZuCe"><input type="image" src="../images/zuce.gif" alt="注册"/></li>
		        </ul>
		    </div>
		</form>
  </body>
</html>
